package com.mongodb.server;

import com.mongodb.entity.User;

import java.util.Date;
import java.util.List;

/**
 * @author Conceit
 * @version 1.0, 2017/1/9
 */

public interface IUserServer {
    public List<User> findByEmail(String email);

    public User findOneByUserId(String userId);

    public void saveUser(User user);

    public List<User> findAllUserByName(String name);

    public List<User> findUsersByTime(Date startTime, Date endTime);
}
